﻿using System;
using System.Collections.Generic;
using System.Text;
using IDotNet.MapLibs.Model;

namespace IDotNet.MapLibs
{
    /// <summary>
    /// 用于提供从地址到经纬度坐标或者从经纬度坐标到地址的转换服务
    /// </summary>
    public interface IGeocoding
    {
        /// <summary>
        /// 地理编码：即地址解析，由详细到街道的结构化地址得到经纬度信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        IGeocoderResultModel Geocoder(IGeocoderRequestModel model);

        /// <summary>
        /// 坐标解析，从经纬度坐标到地址的转换服务
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        IGeocoderLocationResultModel GeocoderLocation(IGeocoderLocationRequestModel model);
    }
}
